/**
* ...
* @author Default
* @version 0.1
*/

package com.crlclr.managers {
	import flash.text.*;

	public class QTextFormat {
		
		public function QTextFormat() {
			
		}
		
		public static function bindDefaultFiled(filed:TextField,textformat:TextFormat=null):void {
			filed.autoSize = TextFieldAutoSize.LEFT;
			filed.selectable = false;
			if (textformat == null) {
				textformat = defaultTextFormat;
			}
			filed.defaultTextFormat = textformat;
		}
		
		public static function get whiteTextFormat():TextFormat{
			var format:TextFormat = defaultTextFormat;
			format.color = 0xFFFFFF;
			return format;
		}
		
		public static function statusBarTextFormat():TextFormat {
			var format:TextFormat = defaultTextFormat;
			format.color = 0x666666;
			return format;
		}
		
		public static function get defaultTextFormat():TextFormat{
			return getTextFormat();
		}
		public static function getTextFormat(font:String="Tahoma",color:Number=0x999999,size:int=12):TextFormat {
			var format:TextFormat = new TextFormat();
            format.font =font;
            format.color =color;
            format.size = size;
			return format;
		}
		
	}
	
}
